package com.hcinfos.gsoo.ui;

import com.hcinfos.gsoo.R;
import com.hcinfos.gsoo.util.Utility;

import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageView;
import android.widget.RelativeLayout;

/**
 * 联系我们
 * 
 * @author xi
 * 
 */
public class ContactUsActivity extends Activity implements OnClickListener {

	private ImageView back_iv;
	private RelativeLayout tel_rl;
	private RelativeLayout im_rl;
	private RelativeLayout work_rl;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_contact_us);

		back_iv = (ImageView) findViewById(R.id.back_iv);
		back_iv.setOnClickListener(this);

		tel_rl = (RelativeLayout) findViewById(R.id.tel_rl);
		tel_rl.setOnClickListener(this);
		im_rl = (RelativeLayout) findViewById(R.id.im_rl);
		im_rl.setOnClickListener(this);
		work_rl = (RelativeLayout) findViewById(R.id.work_rl);
		work_rl.setOnClickListener(this);
	}

	@Override
	public void onClick(View v) {

		switch (v.getId()) {
		case R.id.back_iv:
			finish();
			break;
		case R.id.tel_rl:
			String number = "0779-8720987";
			Intent intent = new Intent(Intent.ACTION_DIAL, Uri.parse("tel:"
					+ number));
			startActivity(intent);
			break;
		case R.id.im_rl:

			break;
		case R.id.work_rl:
			intent = new Intent(this, CooperateActivity.class);
			startActivity(intent);
			break;
		}
	}

}
